package com.study.dao; 

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.study.entity.PaymentBill;

/**  
 *  操作数据库的dao层
 */  

public interface PaymentBillDao  
{  
    
    //增加一个PaymentBill
    public void savePaymentBill(PaymentBill paymentbill);
	
	//根据id查询PaymentBill
    public PaymentBill getPaymentBillById(String id);
	
	
	//分页条件查询PaymentBill
	public List<PaymentBill> listPaymentBill(@Param("paymentBill") PaymentBill paymentBill, @Param("from") String from, @Param("number") String number);
	
	public long getPaymentBillCount(@Param("paymentBill") PaymentBill paymentBill);
	
	
	
	
	//根据id删除PaymentBill
	public boolean removePaymentBillById(String id);
	
	//更新PaymentBill
	public void updatePaymentBill(PaymentBill paymentbill);
	
	
	/**
	 *	条件更新
	 */
	
	//更新所有的PaymentBill	
	public boolean updatePaymentBillByExample(String id, int state, String remark);
	
	
	//更新PaymentBill表中的state
	public boolean updateStateInPaymentBill(@Param("id") String id, @Param("state")int state);
	//更新PaymentBill表中的remark
	public boolean updateRemarkInPaymentBill(@Param("id") String id, @Param("remark")String remark);
}